package com.winhxd.b2c.customer.service;

import com.winhxd.b2c.common.domain.PagedList;
import com.winhxd.b2c.common.domain.common.PagedCondition;
import com.winhxd.b2c.common.domain.customer.condition.DeliveryInfoCondition;
import com.winhxd.b2c.common.domain.customer.model.CustomerDeliveryInfo;

import java.util.List;

/**
 * @author lishaoping
 * @Description: 配送方式
 * @date 2019年1月8日11:57:44
 */
public interface DeliveryInfoService {

    /**
     * 保存/修改配送方式信息
     * @param condition
     * @return
     */
    Boolean saveDeliveryInfo(DeliveryInfoCondition condition);

    /**
     * 逻辑删除配送方式信息
     * @param condition
     * @return
     */
    Boolean deleteDeliveryInfo(DeliveryInfoCondition condition);

    /**
     * 启用/禁用配送方式信息
     * @param condition
     * @return
     */
    Boolean unusedDeliveryInfo(DeliveryInfoCondition condition);

    /**
     * 查看所有配送方式信息(不分页)
     * @param
     * @return
     */
    List<CustomerDeliveryInfo> findDeliveryInfo();

    /**
     * 查看所有配送方式信息(分页)
     * @param
     * @return
     */
    PagedList<CustomerDeliveryInfo> findDeliveryInfoTOPage(PagedCondition condition);

    /**
     * 查看所有配送方式信息ById
     * @param
     * @return
     */
    CustomerDeliveryInfo findDeliveryInfoById(Long id);
}
